package com.meihua.baoleyi.base;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.meihua.baoleyi.common.MyApp;

import butterknife.ButterKnife;

/**
 * Name: liming
 * Time: 2017/10/16.
 * Dec:
 */
public abstract class RegBaseActivity extends BaseActivity {

    private MyApp application;
    private RegBaseActivity oContext;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutResource());
        ButterKnife.bind(this);
        onInitView();
        if (application == null) {
            application = (MyApp) getApplication();
        }
        oContext = this;//

    }

    public abstract int getLayoutResource();

    public abstract void onInitView();

}
